// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import App from './App'
import Home from './components/HelloFromVux'
import Fenlei from './components/Fenlei'
import Needshop from './components/Needshop'
import Shoplist from './components/Shoplist'
import Order from './components/Order'
import store from './store'


Vue.use(VueResource)
Vue.use(VueRouter)

const routes = [{
  path: '/',
  component: Home
},{
    path:'/fenlei',
    component: Fenlei
},{
    path:'/needshop',
    component:Needshop
},{
    name:'shoplist',
    path:'/shoplist/:catalogCode',
    component:Shoplist
},{
    name:'order',
    path: '/order/:cmmdtyCode',
    component:Order
}]

const router = new VueRouter({
  routes
})

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app-box')
